/* Webcam Video Recorder — Broadcast Studio NLE Deck (Crimson Accent) */
.wvr-deck {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.wvr-tally-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 22px;
    background: #111827;
    color: #f8fafc;
    border-bottom: 1px solid #1f2937;
}

.wvr-tally-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wvr-tally-left h1 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.wvr-tally-lamp {
    padding: 4px 10px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: #334155;
    color: #cbd5e1;
}
.wvr-tally-lamp.is-ready { background: #166534; color: #bbf7d0; }
.wvr-tally-lamp.is-rec   { background: #dc2626; color: #ffffff; animation: pulse-dot 1s infinite; }
.wvr-tally-lamp.is-pause { background: #d97706; color: #ffffff; }

.wvr-lcd {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #030712;
    border: 1px solid #1f2937;
    font-family: var(--font-mono);
}
.wvr-lcd-label { font-size: 0.7rem; color: #64748b; }
.wvr-timecode { font-size: 1.15rem; font-weight: 700; color: #f87171; letter-spacing: 0.05em; }
.wvr-size-readout { font-size: 0.8rem; color: #94a3b8; border-left: 1px solid #1f2937; padding-left: 10px; }

.wvr-body {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) 340px;
    gap: 0;
}

.wvr-monitor-col {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid var(--border);
}

.wvr-monitor {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #05070c;
}
.wvr-monitor video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.wvr-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.8);
    pointer-events: none;
}

.wvr-off-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 10px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a 0%, #1c1917 100%);
}
.wvr-off-screen.is-hidden { display: none; }
.wvr-off-screen h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.wvr-off-screen p { margin: 0 0 8px; font-size: 0.88rem; max-width: 340px; color: #94a3b8; }

.wvr-vu-strip {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}
.wvr-vu-track {
    height: 10px;
    border-radius: 99px;
    background: var(--bg-inset);
    overflow: hidden;
}
.wvr-vu-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 70%, #ef4444 100%);
    transition: width 0.06s linear;
}
.wvr-vu-db { text-align: right; color: var(--text-muted); }

.wvr-transport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wvr-btn-rec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
    transition: transform 0.12s ease, filter 0.15s ease;
}
.wvr-btn-rec:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.wvr-btn-rec:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.wvr-side {
    display: flex;
    flex-direction: column;
    background: var(--bg-subtle);
}

.wvr-card {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}
.wvr-card:last-child { border-bottom: none; flex: 1; }
.wvr-card h2 {
    margin: 0 0 12px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}

.wvr-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.wvr-field label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.wvr-field select { width: 100%; }
.wvr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.wvr-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.wvr-clip-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
}
.wvr-bin-empty { margin: 0; font-size: 0.84rem; color: var(--text-soft); }

.wvr-clip-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.wvr-clip-item video { width: 100%; max-height: 150px; background: #000; }
.wvr-clip-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 0.78rem;
}
.wvr-clip-actions { display: flex; gap: 8px; }
.wvr-clip-actions a { color: var(--tool-accent); font-weight: 700; }
.wvr-clip-actions button { border: none; background: none; color: var(--text-soft); font-weight: 600; padding: 0; }

@media (max-width: 960px) {
    .wvr-body { grid-template-columns: 1fr; }
    .wvr-monitor-col { border-right: none; border-bottom: 1px solid var(--border); }
}
