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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    z-index: -1;
}

.clock-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Slightly tighter gap */
    width: auto;
    z-index: 1;
}

.clock-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    text-align: left;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.clock-card.highlighted {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(30, 27, 75, 0.15);
}

/* Hides the date row layout completely on the targeted UTC card */
.clock-card.hide-date .clock-date {
    display: none;
}

.clock-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1px;
}

.clock-time {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.clock-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1px;
}

/* Media Query specifically for small cell phones in portrait mode */
@media (max-width: 450px) {
    .clock-container {
        top: 8px;    /* Pulls it closer to the screen edges */
        left: 8px;
        gap: 4px;    /* Packs the two boxes tighter together */
    }

    .clock-card {
        padding: 4px 8px;  /* Micro padding inside the boxes */
        border-radius: 4px; /* Slightly sharper corners for tiny size */
    }

    .clock-label {
        font-size: 0.5rem; /* Downsized label */
    }

    .clock-time {
        font-size: 0.9rem; /* Drop time from 1.1rem to 0.9rem */
    }

    .clock-date {
        font-size: 0.55rem; /* Downsized date text */
    }
}
