/* teleprompter.css */

.teleprompter-app {
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* Viewport Styling */
.prompter-viewport {
    flex-grow: 1;
    background: #000;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

#cameraPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Default mirror */
}

.script-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20% 40px; /* Vertical padding to keep focus in middle */
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(0,0,0,0.2) 60%, 
        rgba(0,0,0,0.9) 100%);
    pointer-events: none;
}

#scrollContent {
    font-weight: 700;
    line-height: 1.4;
    transition: font-size 0.2s ease;
    opacity: 0.6;
}

.guide-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Controls Customization */
#scriptInput {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    resize: none;
}

.video-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    font-family: monospace;
    font-weight: bold;
}

.indicator {
    color: var(--text-muted);
}

.indicator.active {
    color: #ff3b30;
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 992px) {
    .app-left { min-height: 400px; }
}