:root {
    --bg-color: #121417; /* Slate grey */
    --text-primary: #e2e8f0; /* Off-white */
    --text-secondary: #94a3b8; /* Muted stone grey */
    --border-color: #334155; 
    --font-serif: 'Cinzel', serif; 
    --font-sans: 'Inter', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #090a0c;
    color: var(--text-primary);
    font-family: var(--font-sans);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 16:9 Canvas layout optimized for streaming output scales */
.video-container {
    width: 100vw;
    height: 56.25vw; 
    max-height: 100vh;
    max-width: 177.78vh; 
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6% 8%;
    position: relative;
    border: 1px solid var(--border-color);
}

.frame-line {
    position: absolute;
    border: 1px solid rgba(148, 163, 184, 0.1);
    pointer-events: none;
}
.frame-top-left { top: 40px; left: 40px; width: 30px; height: 30px; border-right: none; border-bottom: none; }
.frame-top-right { top: 40px; right: 40px; width: 30px; height: 30px; border-left: none; border-bottom: none; }
.frame-bottom-left { bottom: 40px; left: 40px; width: 30px; height: 30px; border-right: none; border-top: none; }
.frame-bottom-right { bottom: 40px; right: 40px; width: 30px; height: 30px; border-left: none; border-top: none; }

#countdown-container {
    display: flex;
    justify-content: center;
    gap: 5%;
    align-items: center;
    width: 100%;
    margin-top: auto;
    margin-bottom: 30px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 16%;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 25px;
}

.number {
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
}

.label {
    font-size: 0.9rem;
    letter-spacing: 0.3rem;
    color: var(--text-secondary);
    margin-top: 20px;
    font-weight: 500;
}

.scripture-overlay {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    letter-spacing: 0.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: auto;
}

footer {
    position: absolute;
    bottom: 6%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

#status-text {
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    color: #475569; 
    font-weight: 500;
}
