:root {
    --hazard: #ff6600;
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --red-alert: #ff3e3e; /* Specifically for the clock */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to allow scrolling */
    min-height: 100vh;
    padding: 40px 0;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 700px; /* Narrower looks cleaner for this style */
    z-index: 2;
}

/* VIDEO INTEGRATION */
.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 30px;
    border: 1px solid #222;
    background: #000;
    filter: grayscale(35%) brightness(50%);
    
    /* Ensure anything inside is positioned relative to this box */
    position: relative; 
}

/* This targets the actual video content */
.video-container video, 
.video-container iframe, 
.video-container embed {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the video fills the box without distorting */
}

h1 {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--hazard);
    margin: 0;
}

.status-line {
    font-size: 0.7rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* RED CLOCK NUMBERS */
#countdown {
    font-size: clamp(2rem, 10vw, 4.5rem);
    font-weight: 700;
    color: var(--red-alert); /* Pure Red */
    text-shadow: 0 0 25px rgba(255, 62, 62, 0.4);
    font-variant-numeric: tabular-nums;
}

.label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    padding: 0 5px;
    margin-top: 5px;
    color: var(--red-alert);
}

.fuse-container {
    margin-top: 50px;
    border: 1px solid #222;
    padding: 3px;
}

.fuse-bar {
    height: 8px;
    background: var(--hazard);
    width: 45%; /* Test value */
    box-shadow: 0 0 15px var(--hazard);
}

.fuse-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    margin-top: 10px;
}

.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.hazard-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, rgba(255,102,0,0.02) 0, rgba(255,102,0,0.02) 10px, transparent 10px, transparent 20px);
    pointer-events: none;
}