#wrc-live-timing {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wrc-header {
    background: linear-gradient(135deg, #0051a5 0%, #003d7a 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrc-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.wrc-last-update {
    font-size: 14px;
    opacity: 0.9;
}

.wrc-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.wrc-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.wrc-tab:hover {
    background: #e8e8e8;
    color: #333;
}

.wrc-tab.active {
    background: white;
    color: #0051a5;
    border-bottom: 3px solid #0051a5;
}

.wrc-tab-content {
    padding: 30px;
    min-height: 400px;
}

.wrc-loading {
    text-align: center;
    padding: 60px 20px;
}

.wrc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0051a5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wrc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wrc-table thead {
    background: #f8f9fa;
}

.wrc-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
    text-transform: uppercase;
}

.wrc-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
}

.wrc-table tbody tr:hover {
    background: #f8f9fa;
}

.wrc-position {
    font-weight: 700;
    color: #0051a5;
    font-size: 18px;
    width: 60px;
}

.wrc-driver-name {
    font-weight: 600;
    color: #212529;
}

.wrc-driver-number {
    display: inline-block;
    background: #0051a5;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
}

.wrc-status {
    padding: 15px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wrc-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

.wrc-status-indicator.error {
    background: #dc3545;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#wrc-status-text {
    font-size: 14px;
    color: #666;
}

.wrc-speed {
    font-weight: 600;
    color: #28a745;
}

.wrc-kms {
    color: #666;
}

.wrc-car-info {
    font-size: 13px;
    color: #868e96;
    margin-top: 3px;
}

.wrc-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.wrc-position-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.wrc-position-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.wrc-position-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e9a955);
    color: #fff;
}

.wrc-position-badge.regular {
    background: #e9ecef;
    color: #495057;
}

.wrc-error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 16px;
}

@media (max-width: 768px) {
    .wrc-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .wrc-header h2 {
        font-size: 22px;
    }
    
    .wrc-tab-content {
        padding: 15px;
    }
    
    .wrc-table {
        font-size: 13px;
    }
    
    .wrc-table th,
    .wrc-table td {
        padding: 10px 8px;
    }
}