* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 15px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.main-title {
    color: #e5e5e5;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.divider {
    height: 3px;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
    margin: 20px 0;
    border-radius: 2px;
}

.loading, .error, .no-data {
    text-align: center;
    padding: 30px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    margin-bottom: 20px;
}

.loading {
    color: #2563eb;
    font-weight: 600;
}

.error {
    color: #ef4444;
    background: #1a1a1a;
    border: 1px solid #7f1d1d;
}

.no-data {
    color: #666;
}

.departures-container {
    display: grid;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.departure-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.departure-card.empty {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    justify-content: center;
    min-height: 65px;
}

.departure-card.empty .no-data {
    color: #333;
    font-size: 20px;
}

.departure-card:hover {
    border-color: #3a3a3a;
    background: #1f1f1f;
    transform: translateX(4px);
}

.departure-card.empty:hover {
    border-color: #1a1a1a;
    background: #0f0f0f;
    transform: none;
}

.line-number {
    flex-shrink: 0;
    margin-right: 16px;
}

.line-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 40px;
    background: #2563eb;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 7px;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.departure-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.destination {
    font-size: 15px;
    font-weight: 500;
    color: #e5e5e5;
    flex: 1;
}

.scheduled-time {
    font-size: 18px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    min-width: 55px;
}

.time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 180px;
}

.time-text {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
}

.delay {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
    width: 50px;
    text-align: center;
    padding: 3px 6px;
    border-radius: 5px;
    display: inline-block;
}

.delay:not(:empty) {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 600px) {
    .departure-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .line-number {
        margin-bottom: 15px;
    }

    .departure-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .time {
        text-align: left;
    }

}
