* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    min-height: 100vh;
}
header {
    padding: 1rem 2rem;
    background: #111118;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
h1 {
    font-size: 1.4rem;
    font-weight: 600;
}
.status {
    font-size: 0.85rem;
    color: #888;
}
.status .online {
    color: #4ade80;
}

/* Timeline slider */
.timeline {
    padding: 1rem 2rem;
    background: #111118;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.timeline label {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}
.timeline input[type="range"] {
    flex: 1;
    accent-color: #6366f1;
}
.timeline .time-display {
    font-size: 0.85rem;
    font-family: monospace;
    color: #c4b5fd;
    min-width: 180px;
    text-align: right;
}
.timeline .live-badge {
    background: #4ade80;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
}
.card {
    background: #16161e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #222;
    transition: border-color 0.2s;
}
.card:hover {
    border-color: #444;
}
.card-header {
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}
.card-header h3 {
    font-size: 0.9rem;
    font-weight: 500;
}
.card-header .location {
    font-size: 0.75rem;
    color: #888;
}
.card-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
}
.card-header .dot.offline {
    background: #666;
}
.card-header .age {
    font-size: 0.7rem;
    color: #c4b5fd;
    font-family: monospace;
}
.card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #000;
    display: block;
}
.card img.loading {
    opacity: 0.5;
}
