*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d, #6a82fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.85rem;
    color: #667;
    margin-top: 0.25rem;
    letter-spacing: 0.08em;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

#globe-canvas {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    max-width: 1200px;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
}

.city-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s;
}

.city-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.city-card.daylight {
    border-left: 3px solid #f0c27f;
}

.city-card.nighttime {
    border-left: 3px solid #6a82fb;
}

.city-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #889;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.city-name .icon {
    font-size: 0.9rem;
}

.city-time {
    font-size: 2rem;
    font-weight: 200;
    font-variant-numeric: tabular-nums;
    margin: 0.2rem 0;
    letter-spacing: 0.04em;
}

.city-card.daylight .city-time {
    color: #f0c27f;
}

.city-card.nighttime .city-time {
    color: #8e9aef;
}

.city-date {
    font-size: 0.75rem;
    color: #556;
}

.city-offset {
    font-size: 0.7rem;
    color: #445;
    margin-top: 0.15rem;
}

.system-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    color: #556;
    letter-spacing: 0.03em;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.system-info span {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .city-time {
        font-size: 1.6rem;
    }
}
