body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

.container {
    text-align: center;
    width: 90%;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 3rem); /* Scales between mobile and TV */
    letter-spacing: 0.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.clock-row {
    font-size: clamp(4rem, 20vw, 15rem); /* Giant numbers that won't break */
    font-weight: 800;
    line-height: 0.9;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.separator {
    opacity: 0.3;
    padding: 0 1rem;
    /* Subtle blink animation */
    animation: blink 2s infinite;
}

#seconds {
    font-size: 0.6em; /* Seconds are slightly smaller than minutes for hierarchy */
    font-weight: 400;
    width: 1.2em; /* Prevents layout jump when numbers change */
    text-align: left;
}

.unit {
    font-size: clamp(1rem, 2vw, 2rem);
    letter-spacing: 0.6rem;
    font-weight: 700;
    margin-top: 3rem; /* Significant gap so they don't crash */
    opacity: 0.8;
}

@keyframes blink {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.5; }
}

/* Specific fix for very wide TVs */
@media (min-width: 1920px) {
    .clock-row { font-size: 18rem; }
}