* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    padding: 16px;
}

header {
    text-align: center;
    padding: 20px 0 24px;
}

header h1 {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 500;
}

#clock {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    margin: 8px 0 4px;
}

#status-bar {
    font-size: 0.85rem;
    color: #64748b;
    min-height: 1.2em;
}

#status-bar.active {
    color: #4ade80;
    font-weight: 600;
}

main {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.route-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #334155;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.route-card.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.route-card.inactive {
    opacity: 0.45;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 99px;
}

.badge.morning {
    background: #f59e0b22;
    color: #fbbf24;
    border: 1px solid #f59e0b44;
}

.badge.afternoon {
    background: #6366f122;
    color: #818cf8;
    border: 1px solid #6366f144;
}

.time-window {
    font-size: 0.8rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.route-stops {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stop {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stop-code {
    font-family: monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    background: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.stop-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.arrow {
    font-size: 1.2rem;
    color: #475569;
    padding: 0 2px;
    flex-shrink: 0;
    align-self: center;
    margin-top: 10px;
}

.live-btn {
    display: block;
    text-align: center;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.live-btn:hover {
    background: #2563eb;
}

.route-card.inactive .live-btn {
    background: #334155;
    color: #64748b;
}

/* Metro bonus section */
.metro-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #334155;
}

.metro-card h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metro-card h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #334155;
}

.metro-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #1e293b88;
}

.metro-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.metro-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

.metro-dot.line-d { background: #f59e0b; }

.metro-info .station-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.metro-info .station-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.metro-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #60a5fa;
    text-decoration: none;
}

.metro-link:hover {
    text-decoration: underline;
}
