.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 15px;
    color: #757575;
    margin: 0;
}

.races-layout {
    display: flex;
    gap: 24px;
}

.races-filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filter-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EEEEEE;
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #212121;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 12px;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
}

.filter-checkbox-small {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #616161;
    margin-bottom: 8px;
}

.filter-checkbox-small:last-child {
    margin-bottom: 0;
}

.filter-checkbox-small input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.filter-text-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 200ms;
    font-family: inherit;
}

.filter-text-input:focus {
    outline: none;
    border-color: #FF6B35;
}

.races-content {
    flex: 1;
    min-width: 0;
}

.race-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 16px;
}

.race-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    padding: 20px;
    transition: all 200ms;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.race-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.race-thumbnail {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.race-info {
    flex: 1;
    min-width: 0;
}

.race-name {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.race-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #757575;
}

.race-location,
.race-date {
    display: flex;
    align-items: center;
}

.race-location i,
.race-date i {
    color: #FF6B35;
    width: 18px;
    margin-right: 8px;
    font-size: 13px;
}

.race-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    align-self: flex-start;
}

.race-actions .smr-btn,
.race-actions .btn-secondary {
    padding: 8px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.race-actions .smr-btn i,
.race-actions .btn-secondary i {
    margin-right: 6px;
    font-size: 12px;
}

/* Race Stats */
.race-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #EEEEEE;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #212121;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #757575;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #E0E0E0;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 4px;
    border: 1px solid #E0E0E0;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 36px;
    color: #BDBDBD;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: #757575;
    margin: 0;
}

.flash-messages {
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .races-layout {
        flex-direction: column;
    }
    
    .races-filters-sidebar {
        width: 100%;
        position: static;
    }
    
    .race-card {
        flex-direction: column;
    }
    
    .race-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .race-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .race-actions .smr-btn,
    .race-actions .btn-secondary {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .race-card {
        padding: 16px;
    }
    
    .race-name {
        font-size: 18px;
    }
    
    .race-actions {
        flex-direction: column;
    }
    
    .race-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}